package com.evil.activiti.service;

import com.evil.common.application.dto.order.data.ControlDataDTO;

import java.util.List;
import java.util.Map;

/**
 * 流程条件处理
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface FlowConditionService {

    String FLOW_CONDITION_UTIL = "FlowCondition";
    String FLOW_CONDITION_FUNCTION = "FlowCondition.handleCondition(%s, '%s')";

    /**
     * 处理表单数据作为流转数据
     *
     * @param controlDataList controlDataList
     * @return Map
     */
    Map<String, Object> handlerControlData(List<ControlDataDTO> controlDataList);

    boolean handleCondition(String variables, String judgeAnd);
}
